Skip to content

ui: migrate route templates to gjs strict mode and stabilize regressions#27752

Draft
aklkv wants to merge 102 commits intochore/ui-drop-classic-decorators-sfcfrom
chore/ui-route-templates-gjs-strict-mode
Draft

ui: migrate route templates to gjs strict mode and stabilize regressions#27752
aklkv wants to merge 102 commits intochore/ui-drop-classic-decorators-sfcfrom
chore/ui-route-templates-gjs-strict-mode

Conversation

@aklkv
Copy link
Copy Markdown
Contributor

@aklkv aklkv commented Mar 24, 2026

Description

Testing & Reproduction steps

Links

Contributor Checklist

  • Changelog Entry If this PR changes user-facing behavior, please generate and add a
    changelog entry using the make cl command.
  • Testing Please add tests to cover any new functionality or to demonstrate bug fixes and
    ensure regressions will be caught.
  • Documentation If the change impacts user-facing functionality such as the CLI, API, UI,
    and job configuration, please update the Nomad product documentation, which is stored in the
    web-unified-docs repo. Refer to the web-unified-docs contributor guide for docs guidelines.
    Please also consider whether the change requires notes within the upgrade
    guide
    . If you would like help with the docs, tag the nomad-docs team in this PR.

Reviewer Checklist

  • Backport Labels Please add the correct backport labels as described by the internal
    backporting document.
  • Commit Type Ensure the correct merge method is selected which should be "squash and merge"
    in the majority of situations. The main exceptions are long-lived feature branches or merges where
    history should be preserved.
  • Enterprise PRs If this is an enterprise only PR, please add any required changelog entry
    within the public repository.
  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

aklkv added 30 commits March 18, 2026 01:34
Replace deprecated `(action ...)` helper with modern Ember patterns:
- `(action this.method)` → `this.method` with `@action` decorator
- `(action (mut this.prop))` → `(fn (mut this.prop))`
- `(action ... value=\"target.value\")` → `(pick \"target.value\" (fn (mut ...)))`
- `{{action \"method\"}}` → `{{on \"event\" this.method}}`
- `(action (queue ...))` → `(queue ...)` with `(fn (mut ...))` wrappers

Key fixes:
- Add `@action` to locally-used methods needing `this` binding
  (capture, resetPagination, calculatePosition, etc.)
- Do NOT add `@action` to no-op defaults overridden by parent attrs
  (onToggle, onDismiss, onHamburgerClick) - creates read-only getter
- Use `init()` + `.bind(this)` for image-file.js where method is both
  locally used and overridable by parent
- Wrap bare `(mut ...)` with `(fn ...)` when passed to `pick`/`queue`
  helpers that call it as a function"
aklkv added 28 commits March 19, 2026 02:39
@aklkv aklkv self-assigned this Mar 24, 2026
@aklkv aklkv force-pushed the chore/ui-drop-classic-decorators-sfc branch from cafcfeb to 7b778c6 Compare May 5, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant